# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo1117
# Description:
# Author:       $赵怡蕾
# Date:         2019/4/3
#-------------------------------------------------------------------------------

import re

m = re.match('(\d{3})-(\d{2})-([a-z]{2})','123-45-ab')
if m is not None:
    print(m.group())
    print(m.group(1))
    print(m.group(2))
    print(m.group(3))
    print(m.groups())